#ifndef _USART_H__
#define _USART_H__

#include <stdbool.h>
#include <stdint.h>

typedef struct ModUart {
    uint8_t         i;
    uint8_t         memPool[32];
    uint8_t         bytes;
    uint8_t         tx_data;
    bool            needRefresh;
    bool            isRunning;
    void            (*uartInit)();
    void            (*test)();
    void            (*send)(const uint8_t *pucBuffer, uint32_t ulCount);
    void            (*tx)(uint8_t data);
}ModUart;

extern ModUart modUart;

#endif
